//
//  BaseView.h
//  Comma
//
//  Created by dlios on 15-1-13.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GlobalMacro.h"
@interface BaseView : UIView<UITextFieldDelegate>
// 初始化方法，没有响应的视图的话，参数设置为nil即可
- (instancetype)initWithLeftButton:(NSString *)leftTitle
                       RightButton:(NSString *)rightTitle
                             Title:(NSString *)title
                        FooterView:(FooterViewState)footer;
// 左侧Button
@property (nonatomic, strong)UIButton * leftButton;
// 右侧Button
@property (nonatomic, strong)UIButton * rightButton;
// 底部View
@property (nonatomic, strong)UIView * footerView;
// 底部Button
@property (nonatomic, strong)UIButton * footerButton;
// 顶部View
@property (nonatomic, strong)UIView * headerView;
// 键盘高度
@property (nonatomic, assign)CGFloat keyBoardHeight;
// 界面是否由弹出键盘改变
@property (nonatomic) BOOL viewDidChange;
// 键盘是否出现
@property (nonatomic) BOOL keyBoardDidShow;
// 正在编辑的textField
@property (nonatomic, strong)UITextField * editingTextField;
// 键盘弹出时间
@property (nonatomic, assign)CGFloat keyBoardAnimationDuration;

// leftButton点击事件
- (void)leftButtonAction:(id)sender;
// rightButton点击事件
- (void)rightButtonAction:(id)sender;
// footerButton点击事件
- (void)footerButtonAction:(id)sender;

//需要重写左侧的button按钮
- (void)creatLeftButtonWithTitle:(NSString *)leftTitle;

@end
